package cn.edu.xmist.supermarket.dw.service.impl;

import cn.edu.xmist.supermarket.dw.entity.ProductPO;
import cn.edu.xmist.supermarket.dw.dao.ProductDao;
import cn.edu.xmist.supermarket.dw.service.ProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductDao, ProductPO>
    implements ProductService {
  @Override
  public List<ProductPO> selectPage(ProductPO product, Integer page, Integer size) {
    page = (page - 1) * size;
    return this.baseMapper.selectPage(product, page, size);
  }
}
